# #############递归函数#####
# def db(n):
#     if n >= 3 :
#         n -= 1
#         return db(n)+db(n-1)
#     elif n == 2 or n == 1:
#         return 1
# n = int(input("请输入你想查询的斐波拉契的数列"))
# print(db(n))
##############匿名函数###
# s = float(input("请输入你的身高（米）："))
# w = float(input("请输入你的重量（kg）："))
# bmi = lambda s,w : w /s**2
# print(f"你的bmi数值是：{bmi(s,w)}")
##########用户密码复杂度验证（封装成函数）#########
# def password(x):
#     i = []
#     grade = 2
#     if len(x) >= 8 :
#         grade += 1
#     else :
#         i.append("长度小于8")
#     k = 0
#     w = 0
#     p = 0
#     m = 0
#     for z in range(len(x)):
#         if x[z].isdigit() == 1 :
#             k = 1
#         elif x[z].islower() == 1:
#             w = 1
#         elif x[z].isupper() == 1:
#             p = 1
#         else:
#             m = 1
#     if (k+w+p+m) >= 3:
#         grade += 1
#     else:
#         i.append("密码没有由三种以上字符组成")
#
#     h = 0
#     for w1 in range(len(x)):
#         for li1 in range(len(x)):
#             if x[w1:w1+2] == x[li1:li1+2]:
#                 h += 1
#     if h > len(x)+2:
#         i.append("不能由字符串长度超过3的字串重复")
#     else:
#         grade += 1
#     return grade ,i
# x = input("请输入你要验证的密码：")
# password(x)
# b1 = password(x)
# print(b1)
















